﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NLite.Cfg;
using System.ServiceModel;
using NLite.Domain.Wcf;
using NLite.Domain;

namespace Client
{
    class Program
    {
        interface ICalculateService
        {
            int Add(int a, int b);
            int Sub(int a, int b);
            int Multiply(int a, int b);
            int Divide(int a, int b);
        }

        static void Main(string[] args)
        {
            var cfg = new Configuration();
            cfg.ConfigClient("http://localhost:18824/DispatcherService.svc", new WSHttpBinding());

            var client = ServiceProxyFactory.Create<ICalculateService>();

            var result = client.Add(2, 3);
            Console.WriteLine(result);

            Console.ReadKey();
        }
    }
}
